package com.ansion.basedb.dao.helper;

import com.ansion.basedb.database.sql.ColumnType;

/**
 * created by zhaoyuntao
 * on 15/03/2022
 * description:
 */
public class ColumnBean {
    @ColumnType
    public int type;
    public String name;
    public boolean isPrimaryKey;
    public boolean notNull;
//    private boolean unique;
    public Object value;

    public ColumnBean(ColumnNameBean columnNameBean, Object value) {
        this.type = columnNameBean.type;
        this.name = columnNameBean.name;
        this.isPrimaryKey = columnNameBean.isPrimaryKey;
        this.notNull = columnNameBean.notNull;
//        this.unique = columnNameBean.unique;
        this.value = value;
    }
}
